import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import org.weso.lodin.appserv.TransformerAppServ;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.RDFWriter;


public class PrettyPrinter {

	public static void main(String []args) throws IOException{
		String inputFile = args[0];
		String outputFile = args[1];
		Model m = ModelFactory.createDefaultModel();
		m.read(inputFile,"TURTLE");
		RDFWriter w = m.getWriter("RDF/XML");
		w.setProperty("tab","1");
		OutputStream os= new FileOutputStream(new File(outputFile));
		w.write(m, os,TransformerAppServ.WEBINDEX_BASE_URI);	
		os.close();
		
	}
}
